.ibutton-container {
  position: relative;
  height: 8px;
  border: 1px solid #d1d1d1;
  border-top: 1px solid #ababab;
  -webkit-border-radius: 8px;
  border-radius: 8px;
  cursor: pointer;
  /* set max width to that of sprite */
  max-width: 400px;
  /* prevent text selection */
  -khtml-user-select: none;
  -o-user-select: none;
  -moz-user-select: none;
  -moz-user-focus: ignore; 
  -moz-user-input: disabled;
  /* set default width based on ON/OFF labels */
  width: 54px;
  vertical-align: middle;
  display: inline-block;
}

.wTitle .iButton {
  margin-top: 4px;
  margin-right: 16px;
}

span.left {
  margin-right: 1px;
}

span.right {
  margin-left: 1px;
}

span.online {
  position: relative;
	top: 1px;
	display: inline-block;
	width: 6px;
	height: 7px;
	background: url(../../img/ibutton/onlineLight.png) no-repeat;
}

span.offline {
	position: relative;
  top: 1px;
	display: inline-block;
	width: 6px;
	height: 7px;
	background: url(../../img/ibutton/offlineLight.png) no-repeat;
}

span.yes {
	margin-top: 1px;
	display: inline-block;
	width: 8px;
	height: 8px;
  margin-left: 1px;
	background: url(../../img/ibutton/yes.png) no-repeat;
}

span.no {
	position: relative;
	top: 1px;
	display: inline-block;
	width: 8px;
	height: 8px;
  margin-left: 1px;
	background: url(../../img/ibutton/no.png) no-repeat;
}

.ibutton-disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.ibutton-container .checker {
	opacity: 0;
  position: absolute;
  visibility: hidden;
}

.ibutton-container .radio {
	opacity: 0;
}

.ibutton-container input {
  position: absolute;
  top: 0;
  left: 0;

  /* hide the element */
  filter:alpha(opacity=0);
  -moz-opacity: 0.0;
  opacity: 0.0;

  /* allow checking of input if visible */
  -moz-user-input: enabled;
}

.ibutton-handle {
  display: block;
  height: 20px;
  cursor: inherit;
  position: absolute;
  top: -5px;
  background: url(../../img/ibutton/handler.png) no-repeat scroll 0 0;
  z-index: 3;
  padding-left: 0px;
  /* set default width based on ON/OFF labels */
  width: 16px;
}

div.ibutton-label-on, div.ibutton-label-off {
  white-space: nowrap;
  font-size: 11px;
  line-height: 8px;
  font-weight: bold !important;
  font-family: Arial, Helvetica, sans-serif !important;
  text-transform: uppercase;
  cursor: inherit;
  display: block;
  height: 4px;
  position: absolute;
  width: auto;
  top: 0;
  padding-top: 4px;
  overflow: hidden; 
}

div.ibutton-label-on {
  color: #909090 !important;
  background: #becad0;
  background: -moz-linear-gradient(top, #becad0 0%, #d5e3e9 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#becad0), color-stop(100%,#d5e3e9));
  background: -webkit-linear-gradient(top, #becad0 0%,#d5e3e9 100%);
  background: -o-linear-gradient(top, #becad0 0%,#d5e3e9 100%);
  background: -ms-linear-gradient(top, #becad0 0%,#d5e3e9 100%);
  background: linear-gradient(to bottom, #becad0 0%,#d5e3e9 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#becad0', endColorstr='#d5e3e9',GradientType=0 );
  text-shadow: 0 -1px 2px rgba(0, 0, 0, 0.4);
  padding-top: 4px;
  z-index: 1; 
  text-align: left !important;
}

div.ibutton-label-off {
	background: #c4c4c4;
	background: -moz-linear-gradient(top, #c4c4c4 0%, #efefef 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#c4c4c4), color-stop(100%,#efefef));
	background: -webkit-linear-gradient(top, #c4c4c4 0%,#efefef 100%);
	background: -o-linear-gradient(top, #c4c4c4 0%,#efefef 100%);
	background: -ms-linear-gradient(top, #c4c4c4 0%,#efefef 100%);
	background: linear-gradient(to bottom, #c4c4c4 0%,#efefef 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c4c4c4', endColorstr='#efefef',GradientType=0 );
}

div.ibutton-label-on span {
	padding-left: 7px;
}

div.ibutton-label-off {
  color: #909090 !important;
  background-position: 100% 0;
  text-align: right;
  right: 0;
	/* the off label needs to near the left edge (ideally just 5px away) 
	 * it just needs to be close enough that it won't show under the handle if dragged to the left  
	 */ 
  width: 95% !important;
}

/* create an outline when button gets focus via keyboard */
.ibutton-container label {
	cursor: inherit;
	padding: 1px 3px;
	font-size: 1em !important;
	height: 29px !important;
	line-height: 19px !important;
	font-weight: bold;
	display: inline-block;
}

.ibutton-focus label {
	/* we must use border, since outline doesn't work in IE */
	
	padding: 0 2px;
}

.ibutton-focus div.ibutton-label-on span label {
	/* use white for more contrast */
	
}

/* add padding to right/left so that text gets clipped before absolute edge */
.ibutton-padding-left, .ibutton-padding-right {
	position: absolute; 
	top: 4px;
	z-index: 2; 
	width: 3px;
	height: 20px;
}
	
.ibutton-padding-left {
	left: 0; 
}

.ibutton-padding-right {
	right: 0; 
	background-position: 100% -4px;
}